package com.itheima.tlias84.po;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class InsterStudentParam {
    private int id;
    @NotNull(message = "姓名不能为空")
    @Length(min = 2,max = 10,message = "姓名长度必须在2-10之间")
    private String name;
    @NotNull(message = "学号不能为空")
    @Length(min = 10,max = 10,message = "学号长度必须是10位")
    private String no;
    @NotNull(message = "性别不能为空")
    @Length(message = "性别:1男2女")
    private int gender;
    @NotNull(message = "手机号不能为空")
    @Length(min = 11,message = "手机号长度必须是11位")
    private String phone;
    @NotNull(message = "身份证号不能为空")
    @Length(min = 18,max = 18,message = "身份证号长度必须是18位")
    private String idCard;
    @NotNull(message = "是否为院校学生不能为空")
    @Length(message = "1是0否")
    private int isCollege;
    private String address;
    private Integer degree;
    private LocalDate graduationDate;
    private int clazzId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
